<template>
    <div class="topnav">
        <div class="goback" @click="goback">
            <i class="icon iconfont">&#xe62c;</i>
            <span>返回</span>
        </div>
        <div class="text">
            <h5>
                {{title}}
            </h5>
        </div>
        <div class="more">
            <span>
                {{more}}
            </span>
        </div>
    </div>
</template>

<script>
export default {
    name:"TopNav",
    data(){
        return{

        }
    },
    props:{
        title:{
            type:String,
            default:"未知"
        },
        more:{
            type:String,
        }
    },
    methods:{
        goback:function(){
            this.$router.go(-1)
        }
    }
}
</script>

<style lang="less" scoped>
.topnav{
    width: 100%;
    height: 40/37.5rem;
    line-height: 40/37.5rem;
    font-size: 16px;
    padding:10/37.5rem;
    overflow: hidden;
    background-color: #ffffff;
    border-bottom: 1px solid #e0e0e0;
    .goback{
        width: 52.08/37.5rem;
    }
    .more{
        width: 32/37.5rem;
    }
}
.topnav div{
    float: left;
}
.text{
    width: 250/37.5rem;
    text-align: center;
} 
</style>



